<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="dao.*"  %>
<%@ page import="entity.*"  %>
<%@ taglib uri="TagGroup" prefix="mytag"%>
<!DOCTYPE html>
<html>
  <head>
    <title>Reply Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- jQuery UI -->
    <link href="https://code.jquery.com/ui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" media="screen">

    <!-- Bootstrap -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- styles -->
    <link href="css/styles.css" rel="stylesheet">
    
	<link href="vendors/datatables/dataTables.bootstrap.css" rel="stylesheet" media="screen">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  	<mytag:adminPageHeaderTag/>

    <div class="page-content">
    	<div class="row">
		  <div class="col-md-2">
		  	<div class="sidebar content-box" style="display: block;">
                <ul class="nav">
                    <!-- Main menu -->
                    <li><a href="ManageAdminServlet"><i class="glyphicon glyphicon-home"></i> 管理员账号列表</a></li>
                    <li><a href="add_admin.jsp"><i class="glyphicon glyphicon-pencil"></i> 添加管理员</a></li>
                    <li><a href="ManageUserServlet"><i class="glyphicon glyphicon-home"></i> 用户账号列表</a></li>
                    <li><a href="add_user.jsp"><i class="glyphicon glyphicon-pencil"></i> 添加用户</a></li>
                    <li class="current"><a href="ManageThemeServlet"><i class="glyphicon glyphicon-home"></i> 主题列表</a></li>
                    <li><a href="Article_List_ofAdminServlet"><i class="glyphicon glyphicon-home"></i> 帖子列表</a></li>
                    <li><a href="AnnouncementServlet"><i class="glyphicon glyphicon-home"></i> 公告列表</a></li>
                    <li><a href="ReplyServlet"><i class="glyphicon glyphicon-home"></i> 用户反馈列表</a></li>
                    <li><a href="SensitiveWordServlet"><i class="glyphicon glyphicon-pencil"></i>敏感词管理</a></li>
                </ul>
             </div>
		  </div>
		  <div class="col-md-10">



			<!-- 一个Table表格，带分页，带搜索-->
   			<div class="content-box-large">
  				<div class="panel-heading">
				
				</div>
  				<div class="panel-body">
					<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
						<thead>
							<tr>
								<th>ID</th>
								<th>用户ID</th>
								<th>用户昵称</th>
								<th>反馈信息</th>
								<th>反馈时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<!-- ÁÐ±íµÄÊä³ö -->
						<tbody>
							<c:forEach items="${replys}" var="reply">
								<tr>
									<td>${reply.r_id}</td>
									<td>${reply.user_id}</td>
									<td>${reply.user_name}</td>
									<td>${reply.content}</td>
									<td>${reply.replytime}</td>
									<td>
									<div class="btn-group">
								
									<a href="JudgeReplyServlet?type=0&replyID=${reply.r_id}" onClick="delcfm()" class="btn btn-danger">删除</a>
									</div>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
  				</div>
  			</div> 
  			<div style="height:70px">
  			</div>
			<!-- 其它界面元素在这里写↓ -->
				
			<!-- 其它界面元素在这里写↑ -->
		  </div>
		</div>
    </div>

    <mytag:footerTag/>


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://code.jquery.com/jquery.js"></script>
    <!-- jQuery UI -->
    <script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="bootstrap/js/bootstrap.min.js"></script>

    <script src="vendors/datatables/js/jquery.dataTables.min.js"></script>

    <script src="vendors/datatables/dataTables.bootstrap.js"></script>

    <script src="js/custom.js"></script>
    <script src="js/tables.js"></script>
    <script src="js/jquery-3.3.1.min.js"></script>
	<script src="js/jquery.validate.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/livesearch.min.js"></script>
    
    <script type="text/javascript">
    function delcfm() {
        if (!confirm("确定要删除该条反馈吗？")) {
            window.event.returnValue = false;
        }
    }
	</script>
  </body>
</html>